package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.JzdxCrimeInfoDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 矫正对象罪名-请求对象
 */
@Data
@Schema(description = "矫正对象罪名-请求对象")
public class JzdxCrimeInfoCreateDTO implements Serializable {

    /**
     * 人员编号
     */
    @Schema(description = "人员编号")
    @NotBlank(message = "人员编号不能为空")
    private String rybh;

    /**
     * 罪名不能为空，根据罪名可以获取犯罪类型
     */
    @Schema(description = "罪名")
    @NotEmpty(message = "罪名不能为空")
    private List<JzdxCrimeInfoDTO> crimeNameList;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}
